package com.summer.shopping.domain.table;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "banner")
public class Banner implements Serializable {

  @TableId
  private long id;
  private String title;
  private String imageUrl;
  private String linkUrl;
  private long sortOrder;
  private long isVisible;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
  private LocalDateTime createTime;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
  private LocalDateTime updateTime;

  private static final long serialVersionUID = 1L;


}
